#ifndef __WIFIMANAGER_H__
#define __WIFIMANAGER_H__
#include "A_Config.h"
#include <WiFi.h>

class WiFiManager
{

private:
    bool scanWiFiandConnect();
public:
    void begin();
    void save();
    void clearall();
    void add(const String ssid, const String pass);
    bool has(const String ssid);
    String getPassword(const String ssid);
    bool connectGUI();
    bool autoConnect();
};

extern WiFiManager WiFiMgr;

#endif